inputs=input().replace(" ","").split(',')

a=int(inputs[0])
b=int(inputs[1])

result=0

for i in range(b):
    result=result*10+a
print(result)